package com.zhichat.web.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @ClassName: AddOrRemoveMemberDTO
 * @Description: 新增或删除群成员DTO
 * @Author: 团长九哥 https://space.bilibili.com/602197686
 * @CreateDate: 2024/12/20 16:28
 */
@Data
public class AddOrRemoveMemberDTO implements Serializable {
    /**
     * 群组ID
     */
    @NotNull(message = "群组ID不能为空")
    private Long groupId;
    /**
     * 用户ID集合
     */
//    @NotNull(message = "用户ID不能为空")
//    private List<Long> ids;
    @NotBlank(message = "用户ID不能为空")
    private String ids;
    /**
     * 操作类型
     */
    @NotNull(message = "新增/删除必须指定")
    private Integer type;
}
